package com.itedge.solutionmanager.service.domain.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Service;

import com.itedge.infrastructure.service.domain.impl.AbstractJpaEntityService;
import com.itedge.solutionmanager.domain.impl.Document;

@Service
public class DocumentService extends AbstractJpaEntityService<Document> {
	
	@PersistenceContext
    transient EntityManager entityManager;

	@Override
	protected EntityManager getEntityManager() {
		return this.entityManager;
	}

	@Override
	protected Class<Document> getClassReference() {
		return Document.class;
	}
	
}